package com.chris.libs.example.pages.tabs.main.widget;

import com.chris.libs.base.x.mvpp.mvpp.DefaultPresenter;

import javax.inject.Inject;

/**
 * @author Chris chan
 * Create on： 2025/2/1 19:36
 * Use for: 逻辑处理类
 * Explain:
 */
public class WidgetPresenter extends DefaultPresenter<WidgetContract.UIView>
        implements WidgetContract.Presenter {
    private WidgetViewModel viewModel;

    @Inject
    public WidgetPresenter() {
    }

    public void setViewModel(WidgetViewModel viewModel) {
        this.viewModel = viewModel;
    }

    @Override
    public void requestAndUpdate() {
        this.viewModel.setText("自定义控件");
    }

}
